package com.zbkj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.dal.entity.ba.Discovery;
import com.zbkj.dal.pojo.request.PageParamRequest;
import com.zbkj.dal.pojo.request.ba.ConcludeDiscoveryRequest;
import com.zbkj.dal.pojo.request.ba.CreateDiscoveryRequest;
import com.zbkj.dal.pojo.request.ba.QueryDiscoveryRequest;
import com.zbkj.dal.pojo.response.ba.DiscoveryDetailResponse;
import com.zbkj.dal.pojo.response.ba.DiscoveryResponse;

import java.util.List;

/**
 * <p>
 * 全球找货 服务类
 * </p>
 *
 * @author jhui
 * @since 2023-10-03
 */
public interface DiscoveryService extends IService<Discovery> {

    /**
     * 我的全球找货记录
     * @param status
     * @param pageParamRequest
     * @return
     */
    List<DiscoveryResponse> listMyDiscovery(Integer status, PageParamRequest pageParamRequest);

    /**
     * 删除全球找货记录
     * @param id
     */
    Boolean deleteMyDiscovery(Integer id);

    /**
     * 创建
     * @param createDiscoveryRequest
     * @return
     */
    Boolean create(CreateDiscoveryRequest createDiscoveryRequest);

    /**
     * 全球找货记录详情
     * @param id
     * @return
     */
    DiscoveryDetailResponse detail(Integer id);

    /**
     * 分页查询
     * @param queryDiscoveryRequest
     * @param pageParamRequest
     * @return
     */
    PageInfo<DiscoveryResponse> queryDiscovery(QueryDiscoveryRequest queryDiscoveryRequest, PageParamRequest pageParamRequest);

    /**
     * 更新状态
     * @param concludeDiscoveryRequest
     * @return
     */
    Boolean confirm(ConcludeDiscoveryRequest concludeDiscoveryRequest);
}
